import request from '../utils/request'
import API from './contants'

export const login = ({ username, password }) => request({
  url: API.LOGIN_API,
  method: 'POST',
  data: {
    username,
    password,
  },
})
